﻿package com.eitb.programas.streamingUefa.botones{
	import com.eitb.botones.*;
	import flash.text.*;
	import flash.events.*;
	import flash.display.*;
	import com.eitb.bitmaps.*;
	public class VolumeSlider extends Boton {
		private const ANCHO_BARRA:Number = 110;
		public function VolumeSlider():void {
			this.addEventListener(MouseEvent.MOUSE_DOWN,downBoton);
		}
		private function downBoton(event:MouseEvent):void {
			this.barra.width = event.localX;
			if (5 > this.barra.width) {
				this.barra.width = 0;
			}
		}
		public function getVolumen():Number {
			return (this.barra.width * 110 / 100) /100;
		}
	}
}